//
//  AppHelper.h
//  Ringminder
//
//  Created by Think Small Studio on 09-6-21.
//  Copyright 2009 Think Small Studio. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface AppHelper : NSObject {
	NSDateFormatter *dateFormatter;
	NSCalendar *gregorian;
	NSArray *weekdaysList;
	NSArray *weekdaysAbbreviationList;
	NSArray *soundList;
	NSArray *alertTimeList;
}
@property(nonatomic, retain) NSDateFormatter *dateFormatter;
@property(nonatomic, retain) NSCalendar *gregorian;
@property(nonatomic, retain) NSArray *weekdaysList;
@property(nonatomic, retain) NSArray *weekdaysAbbreviationList;
@property(nonatomic, retain) NSArray *soundList;
@property(nonatomic, retain) NSArray *alertTimeList;

- (id)init;
- (NSString *)getTimeString:(NSDate *)time;
- (NSString *)getRepeatString:(NSMutableArray *)repeat; 
- (NSString *)getSoundString:(NSUInteger)sound;
- (NSString *)getAlertTimeString:(NSUInteger)alerttime;
- (NSString *)getTodayDateString:(NSDate *)date;
- (NSInteger)getTodayDayOfWeek:(NSDate *)date;
- (NSInteger)getHour:(NSDate *)date;
- (NSInteger)getMinute:(NSDate *)date;

@end
